'use strict'
module.exports = [
    {
        name:'test'
    },
    {
        //计算请求耗时
        middleware:async (c,next)=>{
            let startTime = Date.now()
            await next()
            let endTime = Date.now()
            console.log(endTime-startTime,'ms')
        }
    }
]